package com.company.oa.announcement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.oa.announcement.entity.AnnouncementFeedback;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface AnnouncementFeedbackMapper extends BaseMapper<AnnouncementFeedback> {
    
    IPage<AnnouncementFeedback> selectFeedbackPage(Page<AnnouncementFeedback> page, @Param("announcementId") Long announcementId);
    
    Map<String, Object> selectFeedbackStats(@Param("announcementId") Long announcementId);
} 